﻿using UnityEngine;

namespace Assets.Scripts.Interface
{
    class StudioInterface : InterfaceBase
    {
        private bool ExibeCreditos;
        private GameObject ScreenHolder;
        private int Timer = 90;

        void Awake()
        {
            ScreenHolder = this.gameObject.transform.parent.FindChild("ScreenHolder").gameObject;
        }

        void Update()
        {
            base.Update();

            Timer--;
            if (Timer < 0)
                base.Finishing = true;
        }

        protected override void Execute()
        {
            ScreenHolder.SetActive(true);
            this.gameObject.SetActive(false);
        }
    }
}
